//
//  FWMeHeaderView.m
//  BirdLoveSheep
//
//  Created by wwj on 16/4/12.
//  Copyright © 2016年 wwj. All rights reserved.
//

#import "FWMeHeaderView.h"

@interface FWMeHeaderView ()
@property (weak, nonatomic) IBOutlet UIImageView *headImg;

@end

@implementation FWMeHeaderView

+ (instancetype)headerView{
    return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil] lastObject];
}

- (void)awakeFromNib{
    self.headImg.layer.cornerRadius = self.headImg.width * 0.5;
    self.headImg.layer.masksToBounds = YES;
    self.headImg.height = self.headImg.width;
}

- (void)setFrame:(CGRect)frame{
    frame.size = CGSizeMake(kScreenW, self.height);
    [super setFrame:frame];
}

@end
